import 'package:flutter_kit_dsp/flutter_kit_dsp.dart';

class MyEqController extends EqController {
  RxList<bool> default_freq_ison = <bool>[].obs; // 使用RxList
  ///显示on的7个下标
  final show_sign_index_list = [2, 4, 6, 8, 10, 12, 14];
  @override
  void onInit() {
    super.onInit();
    default_freq_ison.value = CHDefaultConfig().signList!.asMap().entries.map(($0) {
      // return true;
      return show_sign_index_list.contains($0.key);
    }).toList();
  }

  ///切换sign的选中状态
  void updateFreqisOn(int index) {
    if (index == -1) return;
    default_freq_ison[index] = !default_freq_ison[index];
  }
}
